package com.woniu.car.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chestnuts
 * @since 2021-06-21
 */
@Data
public class TGoodDetail implements Serializable {

    private static final long serialVersionUID=1L;

    //明细id 一个或多个商品的 明细详情
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Integer detailId;

    //订单明细 编号
    private String detailNumber;

    //商品id
    private Integer goodId;
    //商品名称
    private String goodName;

    //商品数量
    private Integer number;

    //商品单价
    private Double price;

    //商品总价
    private Double total;

    //
    private String kind;

    //订单id
    private Integer orderId;

    //商品图片
    private String goodsImg;

    //
    private Double discountMoney;

    private Double fullMoney;

    private Double realPrice;


    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public String getDetailNumber() {
        return detailNumber;
    }

    public void setDetailNumber(String detailNumber) {
        this.detailNumber = detailNumber;
    }

    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public Double getDiscountMoney() {
        return discountMoney;
    }

    public void setDiscountMoney(Double discountMoney) {
        this.discountMoney = discountMoney;
    }

    public Double getFullMoney() {
        return fullMoney;
    }

    public void setFullMoney(Double fullMoney) {
        this.fullMoney = fullMoney;
    }

    public Double getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(Double realPrice) {
        this.realPrice = realPrice;
    }

    @Override
    public String toString() {
        return "TGoodDetail{" +
        "detailId=" + detailId +
        ", detailNumber=" + detailNumber +
        ", goodId=" + goodId +
        ", goodName=" + goodName +
        ", number=" + number +
        ", price=" + price +
        ", total=" + total +
        ", kind=" + kind +
        ", orderId=" + orderId +
        ", goodsImg=" + goodsImg +
        ", discountMoney=" + discountMoney +
        ", fullMoney=" + fullMoney +
        ", realPrice=" + realPrice +
        "}";
    }
}
